import Mock from 'mockjs'

const cardCount = {
  status: 'success',
  data: {
    cashCardCount: 3
  }
}

const payCodeValue = {
  status: 'success',
  data: '@string(32)'
}

const cardList = {
  status: 'success',
  'data|1-3': [
    {
      MEMBERCARDUSER_ID: '@string(32)',
      CARDNUMBER: '20181212100'+'@integer(100000000, 999999999)',
      'PRICE|1': [1000,1800,10000,18000,30000,60000],
      'BALANCE|500-30000.2': 1,
      'BACBGROUNDICON|1':['/assets/images/test/testMealItem1.jpg','/assets/images/test/testMealItem2.jpg','/assets/images/test/testMealItem3.jpg','/assets/images/test/testMealItem4.jpg','/assets/images/test/testMealItem5.jpg'],
      CARDNAME: '@ctitle(5,20)'
    }
  ]
}

const cardDetail = {
  status: 'success',
  data: {
    MEMBERCARDUSER_ID: '@string(32)',
    CARDNUMBER: '20181212100'+'@integer(100000000, 999999999)',
    'BACBGROUNDICON|1':['/assets/images/test/testMealItem1.jpg','/assets/images/test/testMealItem2.jpg','/assets/images/test/testMealItem3.jpg','/assets/images/test/testMealItem4.jpg','/assets/images/test/testMealItem5.jpg'],
    'PRICE|1': [1000,1800,10000,18000,30000,60000],
    CARDNAME: '@ctitle(5,20)',
    GIFTCYCLE:'@integer(1,11)',
    GIFTNUM:'@integer(1,11)',
    'DODISCOUNT|1-5': [
      {
        DISCOUNT_NUMS:'@float(0, 0.99, 2, 2)',
        DISCOUNT_GOODNAME:"@ctitle()"
      }
    ],
    'GIFTLIST|1-5': [
      {
        GIFT_NUMS:'@integer(1,3)',
        GIFT_GOODNAME:"@ctitle()"
      }
    ],
    'LIMITGOODS|1-5': [
      {
        LIMIT_GOODNAME:"@ctitle()"
      }
    ],
    INSTRUCTIONS: '@cparagraph()',
    OPENCARDTIME: '@datetime("yyyy-MM-dd HH:mm")',
    GIFTNUM_USED: '@integer(1,11)',
    VOUCHERCODE: '@integer(10000000000, 99999999999)',
    GIFTMODE: '@integer(0,1)',
    'BALANCE|500-30000.2': 1
  }
}

export {cardCount,payCodeValue,cardList,cardDetail}
